package com.soul.souldao.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;

@Data
@TableName("older")
public class Older implements Serializable{
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("user_name")
    private String userName;

    @TableField("phone_number")
    private String phoneNumber;

    @TableField("experience_id")
    private Integer experienceId;

    @TableField("guardian_id")
    private Integer guardianId;

    @TableField("sex")
    private Integer sex;

    @TableField("birth")
    private Date birth;

    @TableField("password")
    private String password;

    @TableField("email")
    private String email;

    @TableField("role_name")
    private String roleName;

    @TableField("address")
    private String address;

    @TableField("status")
    private Integer status;
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("nick_name")
    private String nickName;

}
